home *** CD-ROM | disk | FTP | other *** search
- Path: ctp.com!news
- From: Syed Aamer Azam <sazam@ctp.com>
- Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
- Subject: Re: How to detect HD
- Date: 15 Jan 1996 01:38:41 GMT
- Organization: Cambridge Technology Partners
- Message-ID: <4dcb71$287@concorde.ctp.com>
- References: <4d5s19$m7l@nosy.bart.nl> <aprc.536.000FE90E@pcmail.nerc-bas.ac.uk>
- NNTP-Posting-Host: wormhole.ctp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- On Windows you can use the API GetDriveType(int n) where n is
- a number that corresponds to a drive letter. i.e. a = 1, c = 3,
- d = 4 etc. By trying all letters from a to z you could find out
- how many hard drives you have
- Hope this helps
- -Syed
-
-